package com.stylefeng.guns.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author stylefeng123
 * @since 2018-03-14
 */
@TableName("t_monthbalance")
public class TMonthbalance extends Model<TMonthbalance> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("dot_id")
    private Integer dotId;
    /**
     * 差额处理方式 0正常/1转结/2抹平
     */
    @TableField("balance_type")
    private Integer balanceType;
    /**
     * t_monthbalance_detail的转结或者抹平单号
     */
    @TableField("monthbalance__detail_id")
    private Integer monthbalanceDetailId;
    /**
     * 结算单数
     */
    @TableField("batch_count")
    private Integer batchCount;
    /**
     * 交易对象
     */
    private String traner;
    /**
     * 应收
     */
    @TableField("money_should")
    private Double moneyShould;
    /**
     * 实收
     */
    @TableField("money_actual")
    private Double moneyActual;
    /**
     * 收银流水号
     */
    @TableField("bill_id")
    private Integer billId;
    private Date createtime;
    private Integer creater;
    private String ramark;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getDotId() {
        return dotId;
    }

    public void setDotId(Integer dotId) {
        this.dotId = dotId;
    }

    public Integer getBalanceType() {
        return balanceType;
    }

    public void setBalanceType(Integer balanceType) {
        this.balanceType = balanceType;
    }

    public Integer getMonthbalanceDetailId() {
        return monthbalanceDetailId;
    }

    public void setMonthbalanceDetailId(Integer monthbalanceDetailId) {
        this.monthbalanceDetailId = monthbalanceDetailId;
    }

    public Integer getBatchCount() {
        return batchCount;
    }

    public void setBatchCount(Integer batchCount) {
        this.batchCount = batchCount;
    }

    public String getTraner() {
        return traner;
    }

    public void setTraner(String traner) {
        this.traner = traner;
    }

    public Double getMoneyShould() {
        return moneyShould;
    }

    public void setMoneyShould(Double moneyShould) {
        this.moneyShould = moneyShould;
    }

    public Double getMoneyActual() {
        return moneyActual;
    }

    public void setMoneyActual(Double moneyActual) {
        this.moneyActual = moneyActual;
    }

    public Integer getBillId() {
        return billId;
    }

    public void setBillId(Integer billId) {
        this.billId = billId;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Integer getCreater() {
        return creater;
    }

    public void setCreater(Integer creater) {
        this.creater = creater;
    }

    public String getRamark() {
        return ramark;
    }

    public void setRamark(String ramark) {
        this.ramark = ramark;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "TMonthbalance{" +
        "id=" + id +
        ", dotId=" + dotId +
        ", balanceType=" + balanceType +
        ", monthbalanceDetailId=" + monthbalanceDetailId +
        ", batchCount=" + batchCount +
        ", traner=" + traner +
        ", moneyShould=" + moneyShould +
        ", moneyActual=" + moneyActual +
        ", billId=" + billId +
        ", createtime=" + createtime +
        ", creater=" + creater +
        ", ramark=" + ramark +
        "}";
    }
}
